/**
 * @author MIAO
 * Created on 2011-11-5
 * For more information, please visit:ismiao.com
 */
package com.ismiao.spring.aopExample;

import java.lang.reflect.Method;

import org.springframework.aop.ThrowsAdvice;

public class MyException implements ThrowsAdvice {
	/** 写方法的时候一定参考API中的方法样式 不能够随意写 */
	public void afterThrowing(Method method, Object[] args, Object target,
			Exception ex) {
		System.out.println("方法的名称：" + method + "方法的参数" + args.length + "目标对象："
				+ target.getClass().getName() + "异常" + ex.getMessage());
	}
}
